﻿Imports System Imports System.Collections.Generic Imports System.Text

Public Class CNhaCC
#Region "Thuộc tính"

    Private _maNCC As Integer
    Private _tenNCC As String
    Private _soDT As String
    Private _diaChi As String
    Private _email As String
    Private _ghiChu As String

    Public Property maNCC() As Integer
        Get
            Return _maNCC
        End Get
        Set(ByVal value As Integer)
            _maNCC = value
        End Set
    End Property

    Public Property tenNCC() As String
        Get
            Return _tenNCC
        End Get
        Set(ByVal value As String)
            _tenNCC = value
        End Set
    End Property

    Public Property soDT() As String
        Get
            Return _soDT
        End Get
        Set(ByVal value As String)
            _soDT = value
        End Set
    End Property

    Public Property diaChi() As String
        Get
            Return _diaChi
        End Get
        Set(ByVal value As String)
            _diaChi = value
        End Set
    End Property

    Public Property email() As String
        Get
            Return _email
        End Get
        Set(ByVal value As String)
            _email = value
        End Set
    End Property

    Public Property ghiChu() As String
        Get
            Return _ghiChu
        End Get
        Set(ByVal value As String)
            _ghiChu = value
        End Set
    End Property
#End Region

#Region "Phương thức khơi tạo"

    Public Sub New()
        MyBase.New()
        _maNCC = 0
        _tenNCC = ""
        _diaChi = ""
        _soDT = ""
        _email = "_@_"
        _ghiChu = ""
    End Sub

    Public Sub New(ByVal nCC As CNhaCC)
        Me._maNCC = nCC._maNCC
        _tenNCC = nCC._tenNCC
        _diaChi = nCC._diaChi
        _soDT = nCC._soDT
        _email = nCC._email
        _ghiChu = nCC._ghiChu
    End Sub

    Public Sub New(ByVal mNCC As Integer, ByVal tNCC As String, ByVal dcNCC As String, ByVal sDT As String, ByVal eMail As String, ByVal gChu As String)
        _maNCC = mNCC
        _tenNCC = tNCC
        _diaChi = dcNCC
        _soDT = sDT
        _email = eMail
        _ghiChu = ghiChu
    End Sub

#End Region
End Class

